<?php

class Parameter extends Parameter_model {

    function __construct() {
        parent::__construct();
    }

    public static function initParam() {
        $param = new Parameter();
        $param->orderBy('id');
        $param->find();
        while($param->fetchNext()) {
            if (!defined($param->code)) {
                define($param->code, $param->value);
            }
        }
    }
}
